// 队伍单位
export const TeamDataConfig1 = {
  ChooseConfig: {
    title: "队伍选择",
    isShow: false,
    btnList: [
      {
        name: "确认",
        type: "primary",
        id: "confirm",
        size: "small"
      },
      {
        name: "取消",
        id: "cancel",
        size: "small"
      }
    ]
  },
  ChooseFormConfig: {
    formData: [
      {
        type: "selectTree",
        label: "所属单位",
        prop: "unit",
        name: "unitId",
        title: "所属单位选择",
        keyWord: "units", // 搜索关键字，同一表单需要绑定唯一值
        treeRef: "unitRef", // 树结构绑定的ref，同一表单需绑定唯一值
        commonClick: true, // 是否使用默认点击事件，
        clickClose: false, // 判断是否点击选择单位后是否立刻关闭弹窗，
        choose: false, // 判断是否可以多选
        ref: "unit_select", // 同一表单需要绑定唯一ref，用于关闭对应弹窗
        class: "half",
        lableWidth: "140px",
        treeData: {
          data: [],
          default: ["1"],
          checked: [],
          props: {
            children: "children",
            label: "orgName",
            value: "id"
          }
        }
      },
      {
        type: "input",
        label: "队伍名称",
        prop: "teamName",
        class: "half",
        lableWidth: "140px"
      },
      {
        type: "select",
        label: "队伍专业",
        prop: "teamMajor",
        dic: "yz_dw_dwzy",
        class: "half",
        lableWidth: "140px",
        option: []
      },
      {
        type: "select",
        label: "队伍类型",
        prop: "teamTypeName",
        dic: "yz_dw_dwlx",
        class: "half",
        lableWidth: "140px",
        option: []
      }
    ]
  },
  ChooseTableConfig: {
    isSelectFlag: true,
    compRef: "teamTabel",
    isSequenceFlag: true,
    isShowPage: true,
    resetFlag: false,
    loading: false,
    title: "",
    tableData: [],
    columns: [
      {
        prop: "unit",
        label: "所属单位",
        align: "left",
        "min-width": "150px"
      },
      {
        prop: "teamName",
        label: "队伍名称",
        align: "left",
        "min-width": "220px"
      },
      {
        prop: "teamTypeName",
        label: "队伍类型",
        align: "center"
      },
      {
        prop: "teamMajor",
        label: "队伍专业",
        align: "center"
      },
      {
        prop: "teamStatusName",
        label: "队伍状态",
        align: "center"
      },
      {
        prop: "captainName",
        label: "队长姓名",
        align: "center"
      },
      {
        prop: "contactWay",
        label: "队长电话",
        align: "center",
        "min-width": "100px"
      },
      {
        prop: "standbyStaff",
        label: "待命人数",
        align: "center"
      }
    ],
    tableAttr: {
      "row-key": "id",
      height: "485px",
      "max-height": "500px",
      stripe: false,
      border: true,
      fit: true,
      "show-header": true,
      "highlight-current-row": true,
      "cell-style": {
        "font-size": "16px"
      },
      "header-cell-style": {
        "text-align": "center",
        "background-color": "#B1C8F9",
        border: "1px solid #ccc",
        "font-size": "16px"
      }
    },
    paginationAtrrs: {
      total: 0,
      "background": true,
      layout: "prev, pager, next",
      "current-page": 1,
      "page-size": 10
    }
  }
};
// 队员详情
export const TeamDataConfig2 = {
  ChooseConfig: {
    title: "队员选择",
    type: "detailData",
    isShow: false,
    btnList: [
      {
        name: "确认",
        type: "primary",
        id: "confirm",
        size: "small"
      },
      {
        name: "取消",
        id: "cancel",
        size: "small"
      }
    ]
  },
  ChooseFormConfig: {
    formData: [
      {
        type: "input",
        label: "姓名",
        prop: "name",
        class: "half",
        lableWidth: "140px"
      },
      {
        type: "select",
        label: "人员类型",
        prop: "memberType",
        class: "half",
        lableWidth: "140px",
        option: [
          {
            label: "主业",
            value: "主业"
          },
          {
            label: "副业",
            value: "副业"
          }
        ]
      },
      {
        type: "select",
        label: "人员专业",
        prop: "memberMajor",
        dic: "yz_ry_ryzy",
        class: "half",
        lableWidth: "140px",
        option: []
      },
      {
        type: "select",
        label: "特种作业能力",
        prop: "memberAbility",
        dic: "yz_ry_tszynl",
        class: "half",
        lableWidth: "140px",
        option: []
      }
    ]
  },
  ChooseTableConfig: {
    isSelectFlag: true,
    compRef: "playerTabel",
    isSequenceFlag: true,
    isShowPage: true,
    resetFlag: false,
    loading: false,
    title: "",
    tableData: [],
    selectColumnAttr: {
      "reserve-selection": true
    },
    columns: [
      {
        prop: "accessUnit",
        label: "所属单位",
        align: "center"
      },
      {
        prop: "name",
        label: "姓名",
        align: "center"
      },
      {
        prop: "contact",
        label: "联系方式",
        align: "center"
      },
      {
        prop: "memberType",
        label: "人员类型",
        align: "center"
      },
      {
        prop: "memberMajor",
        label: "人员专业",
        align: "center"
      },
      {
        prop: "memberAbility",
        label: "特种作业能力",
        align: "center"
      },
      {
        prop: "accessTerm",
        label: "准入期限",
        align: "center"
      }
    ],
    tableAttr: {
      "row-key": "id",
      height: "485px",
      "max-height": "570px",
      stripe: false,
      border: true,
      fit: true,
      "show-header": true,
      "highlight-current-row": true,
      "cell-style": {
        "font-size": "16px"
      },
      "header-cell-style": {
        "text-align": "center",
        "background-color": "#B1C8F9",
        border: "1px solid #ccc",
        "font-size": "16px"
      }
    },
    paginationAtrrs: {
      total: 0,
      "background": true,
      layout: "prev, pager, next",
      "current-page": 1,
      "page-size": 10
    }
  }
};
// 车辆单位
export const CarDataConfig1 = {
  ChooseConfig: {
    title: "车辆台账",
    isShow: false,
    btnList: [
      {
        name: "确认",
        type: "primary",
        id: "confirm",
        size: "small"
      },
      {
        name: "取消",
        id: "cancel",
        size: "small"
      }
    ]
  },
  ChooseFormConfig: {
    formData: [
      {
        type: "selectTree",
        label: "所属单位",
        prop: "unit",
        name: "unitId",
        title: "所属单位选择",
        keyWord: "units", // 搜索关键字，同一表单需要绑定唯一值
        treeRef: "unitRef", // 树结构绑定的ref，同一表单需绑定唯一值
        commonClick: true, // 是否使用默认点击事件，
        clickClose: false, // 判断是否点击选择单位后是否立刻关闭弹窗，
        choose: false, // 判断是否可以多选
        ref: "unit_select", // 同一表单需要绑定唯一ref，用于关闭对应弹窗
        class: "half",
        lableWidth: "140px",
        treeData: {
          data: [],
          default: ["1"],
          checked: [],
          props: {
            children: "children",
            label: "orgName",
            value: "id"
          }
        }
      },
      {
        type: "select",
        label: "车辆性质",
        prop: "largeCategory",
        dic: "properties",
        class: "half",
        lableWidth: "140px",
        option: []
      },
      {
        type: "select",
        label: "车辆用途",
        prop: "middleCategory",
        dic: "usage",
        class: "half",
        lableWidth: "140px",
        option: []
      },
      {
        type: "select",
        label: "车辆类型",
        prop: "smallCategory",
        dic: "type",
        class: "half",
        lableWidth: "140px",
        option: []
      }
    ]
  },
  ChooseTableConfig: {
    isSelectFlag: true,
    compRef: "vehicle",
    isSequenceFlag: true,
    isShowPage: true,
    resetFlag: true,
    loading: false,
    title: "",
    tableData: [],
    columns: [
      {
        prop: "unit",
        label: "所属单位",
        align: "center"
      },
      {
        prop: "largeCategory",
        label: "车辆性质",
        align: "center"
      },
      {
        prop: "middleCategory",
        label: "车辆用途",
        align: "center"
      },
      {
        prop: "smallCategory",
        label: "车辆类型",
        align: "center"
      },
      {
        prop: "inventory",
        label: "可调配数量",
        align: "center"
      }
    ],
    tableAttr: {
      "max-height": "570px",
      height: "485px",
      stripe: false,
      border: true,
      fit: true,
      "show-header": true,
      "highlight-current-row": true,
      "cell-style": {
        "font-size": "16px"
      },
      "header-cell-style": {
        "text-align": "center",
        "background-color": "#B1C8F9",
        border: "1px solid #ccc",
        "font-size": "16px"
      }
    },
    paginationAtrrs: {
      total: 0,
      "background": true,
      layout: "prev, pager, next",
      "current-page": 1,
      "page-size": 10
    }
  }
};
// 车辆详情
export const CarDataConfig2 = {
  ChooseConfig: {
    title: "车辆选择",
    type: "detailData",
    isShow: false,
    btnList: [
      {
        name: "确认",
        type: "primary",
        id: "confirm",
        size: "small"
      },
      {
        name: "取消",
        id: "cancel",
        size: "small"
      }
    ]
  },
  ChooseFormConfig: {
    formData: [
      {
        type: "selectTree",
        label: "所属单位",
        prop: "unit",
        name: "unitId",
        title: "所属单位选择",
        keyWord: "units", // 搜索关键字，同一表单需要绑定唯一值
        treeRef: "unitRef", // 树结构绑定的ref，同一表单需绑定唯一值
        commonClick: true, // 是否使用默认点击事件，
        clickClose: false, // 判断是否点击选择单位后是否立刻关闭弹窗，
        choose: false, // 判断是否可以多选
        ref: "unit_select", // 同一表单需要绑定唯一ref，用于关闭对应弹窗
        class: "half",
        lableWidth: "140px",
        treeData: {
          data: [],
          default: ["1"],
          checked: [],
          props: {
            children: "children",
            label: "orgName",
            value: "id"
          }
        }
      },
      {
        type: "select",
        label: "车辆性质",
        prop: "vehicleProperties",
        dic: "yz_cl_clxz",
        class: "half",
        lableWidth: "140px",
        option: []
      },
      {
        type: "select",
        label: "车辆用途",
        prop: "vehicleUsage",
        dic: "dic_clyt",
        class: "half",
        lableWidth: "140px",
        option: []
      },
      {
        type: "select",
        label: "车辆类型",
        prop: "vehicleType",
        dic: "dic_cllx",
        class: "half",
        lableWidth: "140px",
        option: []
      }
    ]
  },
  ChooseTableConfig: {
    isSelectFlag: true,
    compRef: "vehicleTabel",
    isSequenceFlag: true,
    isShowPage: true,
    resetFlag: false,
    loading: false,
    title: "",
    tableData: [],
    selectColumnAttr: {
      "reserve-selection": true
    },
    columns: [
      {
        prop: "unit",
        label: "所属单位",
        align: "center"
      },
      {
        prop: "vehicleProperties",
        label: "车辆性质",
        align: "center"
      },
      {
        prop: "vehicleUsage",
        label: "车辆用途",
        align: "center"
      },
      {
        prop: "vehicleType",
        label: "车辆类型",
        align: "center"
      },
      {
        prop: "vehicleNum",
        label: "车牌号",
        align: "center"
      },
      {
        prop: "approvedPassengers",
        label: "核定载客人数",
        align: "center"
      },
      {
        prop: "loadCapacity",
        label: "装载量",
        align: "center"
      },
      {
        prop: "vehicleLocation",
        label: "车辆驻地",
        align: "center"
      },
      {
        prop: "mileage",
        label: "行驶里程",
        align: "center"
      },
      {
        prop: "driver",
        label: "驾驶员",
        align: "center"
      },
      {
        prop: "contact",
        label: "联系方式",
        align: "center"
      }
    ],
    tableAttr: {
      "row-key": "id",
      height: "485px",
      "max-height": "570px",
      stripe: false,
      border: true,
      fit: true,
      "show-header": true,
      "highlight-current-row": true,
      "cell-style": {
        "font-size": "16px"
      },
      "header-cell-style": {
        "text-align": "center",
        "background-color": "#B1C8F9",
        border: "1px solid #ccc",
        "font-size": "16px"
      }
    },
    paginationAtrrs: {
      total: 0,
      "background": true,
      layout: "prev, pager, next",
      "current-page": 1,
      "page-size": 10
    }
  }
};
// 装备台账
export const EquipmentDataConfig0 = {
  ChooseConfig: {
    title: "装备台账",
    isShow: false,
    btnList: [
      {
        name: "确认",
        type: "primary",
        id: "confirm",
        size: "small"
      },
      {
        name: "取消",
        id: "cancel",
        size: "small"
      }
    ]
  },
  ChooseFormConfig: {
    formData: [
      {
        type: "select",
        label: "装备大类",
        prop: "largeCategory",
        dic: "largeCategory",
        class: "half",
        lableWidth: "140px",
        option: []
      },
      {
        type: "select",
        label: "装备小类",
        prop: "smallCategory",
        dic: "smallCategory",
        class: "half",
        lableWidth: "140px",
        option: []
      }
    ]
  },
  ChooseTableConfig: {
    isSelectFlag: true,
    compRef: "zbtz",
    isSequenceFlag: true,
    isShowPage: true,
    resetFlag: true,
    loading: false,
    title: "",
    tableData: [],
    columns: [
      {
        prop: "unit",
        label: "所属单位",
        align: "center"
      },
      {
        prop: "warehouseName",
        label: "仓库名称",
        align: "center"
      },
      {
        prop: "warehouseAddress",
        label: "仓库地点",
        align: "center"
      },
      {
        prop: "largeCategory",
        label: "装备大类",
        align: "center"
      },
      // {
      //   prop: "middleCategory",
      //   label: "装备中类",
      //   align: "center"
      // },
      {
        prop: "smallCategory",
        label: "装备小类",
        align: "center"
      },
      {
        prop: "inventory",
        label: "可调配数量",
        align: "center"
      }
    ],
    tableAttr: {
      "max-height": "570px",
      height: "485px",
      stripe: false,
      border: true,
      fit: true,
      "show-header": true,
      "highlight-current-row": true,
      "cell-style": {
        "font-size": "16px"
      },
      "header-cell-style": {
        "text-align": "center",
        "background-color": "#B1C8F9",
        border: "1px solid #ccc",
        "font-size": "16px"
      }
    },
    paginationAtrrs: {
      total: 0,
      "background": true,
      layout: "prev, pager, next",
      "current-page": 1,
      "page-size": 10
    }
  }
};
// 装备仓库
export const EquipmentDataConfig1 = {
  ChooseConfig: {
    title: "装备台账",
    isShow: false,
    btnList: [
      {
        name: "确认",
        type: "primary",
        id: "confirm",
        size: "small"
      },
      {
        name: "取消",
        id: "cancel",
        size: "small"
      }
    ]
  },
  ChooseFormConfig: {
    formData: [
      {
        type: "selectTree",
        label: "所属单位",
        prop: "unit",
        name: "unitId",
        title: "所属单位选择",
        keyWord: "units", // 搜索关键字，同一表单需要绑定唯一值
        treeRef: "unitRef", // 树结构绑定的ref，同一表单需绑定唯一值
        commonClick: true, // 是否使用默认点击事件，
        clickClose: false, // 判断是否点击选择单位后是否立刻关闭弹窗，
        choose: false, // 判断是否可以多选
        ref: "unit_select", // 同一表单需要绑定唯一ref，用于关闭对应弹窗
        class: "half",
        lableWidth: "140px",
        treeData: {
          data: [],
          default: ["1"],
          checked: [],
          props: {
            children: "children",
            label: "orgName",
            value: "id"
          }
        }
      },
      {
        type: "select",
        label: "仓库名称",
        prop: "warehouseId",
        class: "half",
        lableWidth: "140px",
        option: []
      }
    ]
  },
  ChooseTableConfig: {
    isSelectFlag: true,
    compRef: "equ",
    isSequenceFlag: true,
    isShowPage: true,
    resetFlag: false,
    loading: false,
    title: "",
    tableData: [],
    columns: [
      {
        prop: "unit",
        label: "所属单位",
        align: "center"
      },
      {
        prop: "warehouseName",
        label: "仓库名称",
        align: "center"
      },
      {
        prop: "warehouseAddress",
        label: "仓库地点",
        align: "center"
      },
      {
        prop: "contact",
        label: "仓库联系人",
        align: "center"
      },
      {
        prop: "contactWay",
        label: "联系方式",
        align: "center"
      }
    ],
    tableAttr: {
      "row-key": "id",
      height: "485px",
      "max-height": "570px",
      stripe: false,
      border: true,
      fit: true,
      "show-header": true,
      "highlight-current-row": true,
      "cell-style": {
        "font-size": "16px"
      },
      "header-cell-style": {
        "text-align": "center",
        "background-color": "#B1C8F9",
        border: "1px solid #ccc",
        "font-size": "16px"
      }
    },
    paginationAtrrs: {
      total: 0,
      "background": true,
      layout: "prev, pager, next",
      "current-page": 1,
      "page-size": 10
    }
  }
};
// 装备详情
export const EquipmentDataConfig2 = {
  ChooseConfig: {
    title: "装备选择",
    type: "detailData",
    isShow: false,
    btnList: [
      {
        name: "确认",
        type: "primary",
        id: "confirm",
        size: "small"
      },
      {
        name: "取消",
        id: "cancel",
        size: "small"
      }
    ]
  },
  ChooseFormConfig: {
    formData: [
      {
        type: "select",
        label: "装备大类",
        prop: "largeCategory",
        dic: "yz_zb_zbdl",
        class: "half",
        lableWidth: "140px",
        option: []
      },
      {
        type: "select",
        label: "装备小类",
        prop: "smallCategory",
        dic: "dic_zbxl",
        class: "half",
        lableWidth: "140px",
        option: []
      }
    ]
  },
  ChooseTableConfig: {
    isSelectFlag: true,
    compRef: "EquipmentDetailTabel",
    isSequenceFlag: true,
    isShowPage: true,
    resetFlag: false,
    loading: false,
    title: "",
    tableData: [],
    selectColumnAttr: {
      "reserve-selection": true
    },
    columns: [
      {
        prop: "storageLocation",
        label: "存放地点",
        align: "center"
      },
      {
        prop: "largeCategory",
        label: "装备大类",
        align: "center"
      },
      {
        prop: "smallCategory",
        label: "装备小类",
        align: "center"
      },
      {
        prop: "equipName",
        label: "装备名称",
        align: "center"
      },
      {
        prop: "preserver",
        label: "保管人",
        align: "center"
      },
      {
        prop: "contactWay",
        label: "联系方式",
        align: "center"
      },
      {
        prop: "count",
        label: "可调配数量",
        align: "center"
      },
      {
        prop: "requireCount",
        label: "需求数量",
        align: "center",
        "min-width": "80px",
        render: (h, { row }) => {
          return (
            <el-input-number controls-position='right' type='number' resize='none' value={row.requireCount} vOn:input={(e) => { row.requireCount = e; }} min={0} max={row.count} >
            </el-input-number>

          );
        }
      }
    ],
    tableAttr: {
      "row-key": "id",
      "max-height": "570px",
      height: "485px",
      stripe: false,
      border: true,
      fit: true,
      "show-header": true,
      "highlight-current-row": true,
      "cell-style": {
        "font-size": "16px"
      },
      "header-cell-style": {
        "text-align": "center",
        "background-color": "#B1C8F9",
        border: "1px solid #ccc",
        "font-size": "16px"
      }
    },
    paginationAtrrs: {
      total: 0,
      "background": true,
      layout: "prev, pager, next",
      "current-page": 1,
      "page-size": 10
    }
  }
};
// 物资台账
export const MaterialDataConfig0 = {
  ChooseConfig: {
    title: "物资台账",
    isShow: false,
    btnList: [
      {
        name: "确认",
        type: "primary",
        id: "confirm",
        size: "small"
      },
      {
        name: "取消",
        id: "cancel",
        size: "small"
      }
    ]
  },
  ChooseFormConfig: {
    formData: [
      {
        type: "select",
        label: "物资大类",
        prop: "largeCategory",
        dic: "largeCategory",
        class: "third",
        lableWidth: "100px",
        option: []
      },
      {
        type: "select",
        label: "物资中类",
        prop: "middleCategory",
        dic: "middleCategory",
        class: "third",
        lableWidth: "100px",
        option: []
      },
      {
        type: "select",
        label: "物资小类",
        prop: "smallCategory",
        dic: "smallCategory",
        class: "third",
        lableWidth: "100px",
        option: []
      }
    ]
  },
  ChooseTableConfig: {
    isSelectFlag: true,
    compRef: "dwxz",
    isSequenceFlag: true,
    isShowPage: true,
    resetFlag: true,
    loading: false,
    title: "",
    tableData: [],
    columns: [
      {
        prop: "unit",
        label: "所属单位",
        align: "center"
      },
      {
        prop: "warehouseName",
        label: "仓库名称",
        align: "center"
      },
      {
        prop: "warehouseAddress",
        label: "仓库地点",
        align: "center"
      },
      {
        prop: "smallCategory",
        label: "物资小类",
        align: "center"
      },
      {
        prop: "inventory",
        label: "库存",
        align: "center"
      },
      {
        prop: "contact",
        label: "仓库联系人",
        align: "center"
      },
      {
        prop: "contactWay",
        label: "联系方式",
        align: "center"
      }
    ],
    tableAttr: {
      "max-height": "570px",
      height: "485px",
      stripe: false,
      border: true,
      fit: true,
      "show-header": true,
      "highlight-current-row": true,
      "cell-style": {
        "font-size": "16px"
      },
      "header-cell-style": {
        "text-align": "center",
        "background-color": "#B1C8F9",
        border: "1px solid #ccc",
        "font-size": "16px"
      }
    },
    paginationAtrrs: {
      total: 0,
      "background": true,
      layout: "prev, pager, next",
      "current-page": 1,
      "page-size": 10
    }
  }
};
// 物资仓库
export const MaterialDataConfig1 = {
  ChooseConfig: {
    title: "物资台账",
    isShow: false,
    btnList: [
      {
        name: "确认",
        type: "primary",
        id: "confirm",
        size: "small"
      },
      {
        name: "取消",
        id: "cancel",
        size: "small"
      }
    ]
  },
  ChooseFormConfig: {
    formData: [
      {
        type: "selectTree",
        label: "所属单位",
        prop: "unit",
        name: "unitId",
        title: "所属单位选择",
        keyWord: "units", // 搜索关键字，同一表单需要绑定唯一值
        treeRef: "unitRef", // 树结构绑定的ref，同一表单需绑定唯一值
        commonClick: true, // 是否使用默认点击事件，
        clickClose: false, // 判断是否点击选择单位后是否立刻关闭弹窗，
        choose: false, // 判断是否可以多选
        ref: "unit_select", // 同一表单需要绑定唯一ref，用于关闭对应弹窗
        class: "half",
        lableWidth: "140px",
        treeData: {
          data: [],
          default: ["1"],
          checked: [],
          props: {
            children: "children",
            label: "orgName",
            value: "id"
          }
        }
      },
      {
        type: "select",
        label: "仓库名称",
        prop: "warehouseId",
        class: "half",
        lableWidth: "140px",
        option: []
      }
    ]
  },
  ChooseTableConfig: {
    isSelectFlag: true,
    compRef: "supplies",
    isSequenceFlag: true,
    isShowPage: true,
    resetFlag: false,
    loading: false,
    title: "",
    tableData: [],
    columns: [
      {
        prop: "unit",
        label: "所属单位",
        align: "center"
      },
      {
        prop: "warehouseName",
        label: "仓库名称",
        align: "center"
      },
      {
        prop: "warehouseAddress",
        label: "仓库地点",
        align: "center"
      },
      {
        prop: "contact",
        label: "仓库联系人",
        align: "center"
      },
      {
        prop: "contactWay",
        label: "联系方式",
        align: "center"
      }
    ],
    tableAttr: {
      "row-key": "id",
      "max-height": "570px",
      height: "485px",
      stripe: false,
      border: true,
      fit: true,
      "show-header": true,
      "highlight-current-row": true,
      "cell-style": {
        "font-size": "16px"
      },
      "header-cell-style": {
        "text-align": "center",
        "background-color": "#B1C8F9",
        border: "1px solid #ccc",
        "font-size": "16px"
      }
    },
    paginationAtrrs: {
      total: 0,
      "background": true,
      layout: "prev, pager, next",
      "current-page": 1,
      "page-size": 10
    }
  }
};
// 物资详情
export const MaterialDataConfig2 = {
  ChooseConfig: {
    title: "物资选择",
    type: "detailData",
    isShow: false,
    btnList: [
      {
        name: "确认",
        type: "primary",
        id: "confirm",
        size: "small"
      },
      {
        name: "取消",
        id: "cancel",
        size: "small"
      }
    ]
  },
  ChooseFormConfig: {
    formData: [
      {
        type: "select",
        label: "物资大类",
        prop: "largeCategory",
        dic: "dic-wzdl",
        class: "third",
        lableWidth: "100px",
        option: []
      },
      {
        type: "select",
        label: "物资中类",
        prop: "middleCategory",
        dic: "dic-wzzl",
        class: "third",
        lableWidth: "100px",
        option: []
      },
      {
        type: "select",
        label: "物资小类",
        prop: "smallCategory",
        dic: "dic-wzxl",
        class: "third",
        lableWidth: "100px",
        option: []
      }
    ]
  },
  ChooseTableConfig: {
    isSelectFlag: true,
    compRef: "MaterialDetailTable",
    isSequenceFlag: true,
    isShowPage: true,
    resetFlag: false,
    loading: false,
    title: "",
    tableData: [],
    selectColumnAttr: {
      "reserve-selection": true
    },
    columns: [
      {
        prop: "largeCategory",
        label: "物资大类",
        align: "center"
      },
      {
        prop: "middleCategory",
        label: "物资中类",
        align: "center"
      },
      {
        prop: "smallCategory",
        label: "物资小类",
        align: "center"
      },
      {
        prop: "suppliesDescription",
        label: "物料描述",
        align: "center"
      },
      {
        prop: "measure",
        label: "计量单位",
        align: "center"
      },
      {
        prop: "manufactureDate",
        label: "入库日期",
        align: "center"
      },
      {
        prop: "count",
        label: "可调配数量",
        align: "center"
      },
      {
        prop: "requireCount",
        label: "需求数量",
        align: "center",
        "min-width": "80px",
        render: (h, { row }) => {
          return (
            <el-input-number controls-position='right' type='number' resize='none' value={row.requireCount} vOn:input={(e) => { row.requireCount = e; }} min={0} max={row.count} >
            </el-input-number>

          );
        }
      }
    ],
    tableAttr: {
      "row-key": "id",
      "max-height": "570px",
      height: "485px",
      stripe: false,
      border: true,
      fit: true,
      "show-header": true,
      "highlight-current-row": true,
      "cell-style": {
        "font-size": "16px"
      },
      "header-cell-style": {
        "text-align": "center",
        "background-color": "#B1C8F9",
        border: "1px solid #ccc",
        "font-size": "16px"
      }
    },
    paginationAtrrs: {
      total: 0,
      "background": true,
      layout: "prev, pager, next",
      "current-page": 1,
      "page-size": 10
    }
  }
};

